package com.lxl.securitypermission.mapper;

import com.lxl.securitypermission.controller.vo.SimpleRoleVo;
import com.lxl.securitypermission.entity.SRolePermission;
import com.lxl.securitypermission.pojo.RolePermission;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 绫小路
 * @date 2021/1/5 20:12
 * @description
 */
public interface SRolePermissionMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(SRolePermission record);

  SRolePermission selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SRolePermission record);

  int updateByPrimaryKey(SRolePermission record);

  List<RolePermission> getAllRolePermission();

  int hasExists(@Param("roleId") int roleId, @Param("permissionId") int permissionId);

  void addPermission(@Param("roleId") int roleId, @Param("permissionId") int permissionId);

}
